#include "StdAfx.h"
#include "t_MessageRecipientPing.h"

using namespace std;

t_MessageRecipientPing::t_MessageRecipientPing(void)
{
	int count = 0;
}


t_MessageRecipientPing::~t_MessageRecipientPing(void)
{
}

int t_MessageRecipientPing::ProcessMessage(t_Message* p_Message)
{
	t_MessageQueue *p_MessageQueue;

	count++;
	cout << count << " ";
	/* p_Message->msg - number of seconds */
	p_Message->GetMessageQueue()->SendMessage(this, 
		p_Message->GetType(), 
		p_Message->GetMsg(), 
		(clock() + p_Message->GetMsg() * CLOCKS_PER_SEC)
		);
	return 0;
}